// @import '~@/style/base.less';
@text_color: #000;
@border_color: #E4E4E4;
@active_color: #F9BF29;
@subtext_color: #666;
@color_theme: #ffae00; 


.hasMore(@right:0) {
  position: relative;
  padding-right: @right + 32px;
  &::after {
    content: '';
    position: absolute;
    right: @right / 2 + 0;
    top: 50%;
    margin-top: -16px;
    display: block;
    width: 32px;
    height: 32px;
    font-size: 0;
    background: url('~@/assets/images/page_more.png') right center no-repeat;
    background-size: 18px auto;
  }
}


.buttonBg() {
  color: #fff;
  background: @color_theme;
}

.buttonShadow() {
  box-shadow: 0 6px 10px 0 rgba(237, 213, 160, 0.7);
}

.toGray() {
  filter: grayscale(100%);
  -webkit-filter: grayscale(1);
} 

.modal {
  &_wrap{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    max-height: 80%;
    display: flex;
    flex-flow: column;
  }
  &_head_left_text {
    position: absolute;
    top: 32px;
    left: 24px;
    i {
      padding: 10px 24px 0;
      // border: 1px solid @border_color;
      border-radius: 8px;
      font-size: 24px;
      color: #333;
      display: flex;
      align-items: center;
    }
  }
  &_close {
    position: absolute;
    top: 32px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: url('~@/assets/images/method_payment_close@2x.png') center no-repeat;
    background-size: 46px auto;
    font-size: 0;
  }
  &_tolink {
    color: @color_theme;
    position: absolute;
    top: 32px;
    right: 0px;
    width: 200px;
    padding: 10px 24px 0;
    i {
      .hasMore();
    }
  }
 &_head {
    flex: 0 0 auto;
    display: flex;
    padding: 40px 24px;
    justify-content: center;
    font-size: 30px;
    color: @subtext_color;
  }
  &_body {
    padding: 0 24px;
    flex: 1 1 auto;
    overflow: auto;
    margin: 24px 0;
    &_no_padding {
      padding: 0;
    }
  }
  &_foot {
    padding: 32px;
    text-align: center;
    border-top: 1px solid #eeeeee;
    .btn {
      .buttonBg();
      .buttonShadow();
      border: 0;
      width: 640px;
      height: 88px;
      font-size: 32px;
      font-weight: bold;
      border-radius: 16px;
      &:disabled {
        .toGray();
      }
    }
  }
}

@keyframes spec_in {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0%);
  }
}
